home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1983-04-04 | 7.6 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Apr 4 17:41:45 1983, modified Mon Apr 4 17:41:45 1983, creator SimpleText, type ASCII, 7051 bytes "HighlightedImageMap.java" , at 0x1c0b 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dexmagic
| Picasso 64 Image
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 48 69 67 68 6c 69 | 67 68 74 65 64 49 6d 61 |..Highli|ghtedIma|
|00000010| 67 65 4d 61 70 2e 6a 61 | 76 61 00 00 00 00 00 00 |geMap.ja|va......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 00 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 1b 8b 00 | 00 01 9a 95 15 1d 29 95 |........|......).|
|00000060| 15 1d 29 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..).....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 12 ec 00 00 |........|........|
|00000080| 2f 2a 2a 0d 20 2a 0d 20 | 2a 09 48 69 67 68 6c 69 |/**. *. |*.Highli|
|00000090| 67 68 74 65 64 49 6d 61 | 67 65 4d 61 70 0d 20 2a |ghtedIma|geMap. *|
|000000a0| 0d 20 2a 09 54 68 69 73 | 20 61 70 70 6c 65 74 20 |. *.This| applet |
|000000b0| 77 61 73 20 6f 72 69 67 | 69 6e 61 6c 6c 79 20 64 |was orig|inally d|
|000000c0| 65 76 65 6c 6f 70 65 64 | 20 62 79 20 52 69 63 6b |eveloped| by Rick|
|000000d0| 61 72 64 20 4f 62 65 72 | 67 20 28 72 69 63 6b 61 |ard Ober|g (ricka|
|000000e0| 72 64 40 6c 79 73 61 74 | 6f 72 2e 6c 69 75 2e 73 |rd@lysat|or.liu.s|
|000000f0| 65 29 0d 20 2a 09 0d 20 | 2a 09 4d 6f 64 69 66 69 |e). *.. |*.Modifi|
|00000100| 63 61 74 69 6f 6e 73 20 | 77 65 72 65 20 6d 61 64 |cations |were mad|
|00000110| 65 20 62 79 20 53 74 75 | 61 72 74 20 53 6e 61 64 |e by Stu|art Snad|
|00000120| 64 6f 6e 20 28 73 6e 61 | 64 64 6f 73 67 40 64 63 |don (sna|ddosg@dc|
|00000130| 73 2e 67 6c 61 2e 61 63 | 2e 75 6b 29 20 74 6f 20 |s.gla.ac|.uk) to |
|00000140| 6d 61 6b 65 20 74 68 65 | 20 61 70 70 6c 65 74 3a |make the| applet:|
|00000150| 0d 20 2a 09 09 a5 20 4d | 6f 72 65 20 73 74 61 62 |. *... M|ore stab|
|00000160| 6c 65 20 28 63 72 61 73 | 68 65 73 20 77 65 72 65 |le (cras|hes were|
|00000170| 20 72 65 70 6f 72 74 65 | 64 20 77 69 74 68 20 74 | reporte|d with t|
|00000180| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 61 70 70 6c |he origi|nal appl|
|00000190| 65 74 29 0d 20 2a 09 09 | a5 20 43 61 70 61 62 6c |et). *..|. Capabl|
|000001a0| 65 20 6f 66 20 70 6c 61 | 79 69 6e 67 20 73 6f 75 |e of pla|ying sou|
|000001b0| 6e 64 73 20 69 66 20 72 | 65 71 75 69 72 65 64 0d |nds if r|equired.|
|000001c0| 20 2a 09 09 a5 20 53 68 | 6f 77 20 74 68 65 20 27 | *... Sh|ow the '|
|000001d0| 41 4c 54 27 20 74 65 78 | 74 20 69 6e 20 74 68 65 |ALT' tex|t in the|
|000001e0| 20 62 72 6f 77 73 65 72 | 20 73 74 61 74 75 73 20 | browser| status |
|000001f0| 62 61 72 20 28 69 66 20 | 62 6f 74 68 20 65 78 69 |bar (if |both exi|
|00000200| 73 74 21 29 0d 20 2a 0d | 20 2a 09 54 68 65 73 65 |st!). *.| *.These|
|00000210| 20 6d 6f 64 69 66 69 63 | 61 74 69 6f 6e 73 20 61 | modific|ations a|
|00000220| 72 65 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 6d |re inten|ded to m|
|00000230| 61 6b 65 20 74 68 65 20 | 61 70 70 6c 65 74 20 6d |ake the |applet m|
|00000240| 6f 72 65 20 75 73 65 66 | 75 6c 20 77 69 74 68 20 |ore usef|ul with |
|00000250| 74 68 65 20 6d 61 63 69 | 6e 74 6f 73 68 0d 20 2a |the maci|ntosh. *|
|00000260| 09 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 49 6d 61 |.applica|tion Ima|
|00000270| 67 65 4d 61 70 70 65 72 | 20 76 33 2e 30 20 28 73 |geMapper| v3.0 (s|
|00000280| 68 61 72 65 77 61 72 65 | 20 24 31 35 29 2c 20 62 |hareware| $15), b|
|00000290| 75 74 20 77 69 74 68 20 | 74 68 65 20 6f 72 69 67 |ut with |the orig|
|000002a0| 69 6e 61 6c 20 73 70 69 | 72 69 74 20 6f 66 20 52 |inal spi|rit of R|
|000002b0| 69 63 6b 61 72 64 27 73 | 20 61 70 70 6c 65 74 2c |ickard's| applet,|
|000002c0| 0d 20 2a 09 74 68 69 73 | 20 63 6f 64 65 20 68 61 |. *.this| code ha|
|000002d0| 73 20 62 65 65 6e 20 70 | 6c 61 63 65 64 20 69 6e |s been p|laced in|
|000002e0| 20 74 68 65 20 70 75 62 | 6c 69 63 20 64 6f 6d 61 | the pub|lic doma|
|000002f0| 69 6e 2c 20 66 65 65 6c | 20 66 72 65 65 20 74 6f |in, feel| free to|
|00000300| 20 6d 6f 64 69 66 79 20 | 61 6e 64 20 64 69 73 74 | modify |and dist|
|00000310| 72 69 62 75 74 65 2c 20 | 62 75 74 20 70 6c 65 61 |ribute, |but plea|
|00000320| 73 65 0d 20 2a 09 6b 65 | 65 70 20 74 68 69 73 20 |se. *.ke|ep this |
|00000330| 6e 6f 74 69 63 65 20 69 | 6e 74 61 63 74 2e 0d 20 |notice i|ntact.. |
|00000340| 2a 0d 20 2a 2f 0d 0d 69 | 6d 70 6f 72 74 20 6a 61 |*. */..i|mport ja|
|00000350| 76 61 2e 61 70 70 6c 65 | 74 2e 2a 3b 0d 69 6d 70 |va.apple|t.*;.imp|
|00000360| 6f 72 74 20 6a 61 76 61 | 2e 61 77 74 2e 2a 3b 0d |ort java|.awt.*;.|
|00000370| 69 6d 70 6f 72 74 20 6a | 61 76 61 2e 61 77 74 2e |import j|ava.awt.|
|00000380| 69 6d 61 67 65 2e 2a 3b | 0d 69 6d 70 6f 72 74 20 |image.*;|.import |
|00000390| 6a 61 76 61 2e 69 6f 2e | 2a 3b 0d 69 6d 70 6f 72 |java.io.|*;.impor|
|000003a0| 74 20 6a 61 76 61 2e 6e | 65 74 2e 2a 3b 0d 69 6d |t java.n|et.*;.im|
|000003b0| 70 6f 72 74 20 6a 61 76 | 61 2e 75 74 69 6c 2e 2a |port jav|a.util.*|
|000003c0| 3b 0d 0d 70 75 62 6c 69 | 63 20 63 6c 61 73 73 20 |;..publi|c class |
|000003d0| 48 69 67 68 6c 69 67 68 | 74 65 64 49 6d 61 67 65 |Highligh|tedImage|
|000003e0| 4d 61 70 20 65 78 74 65 | 6e 64 73 20 41 70 70 6c |Map exte|nds Appl|
|000003f0| 65 74 0d 7b 0d 0d 09 49 | 6d 61 67 65 20 09 09 09 |et.{...I|mage ...|
|00000400| 09 6e 6f 72 6d 61 6c 69 | 6d 67 3b 0d 09 49 6d 61 |.normali|mg;..Ima|
|00000410| 67 65 20 09 09 09 09 68 | 69 67 68 6c 69 67 68 74 |ge ....h|ighlight|
|00000420| 65 64 69 6d 67 3b 0d 0d | 09 70 75 62 6c 69 63 20 |edimg;..|.public |
|00000430| 62 6f 6f 6c 65 61 6e 09 | 09 6e 6c 6f 61 64 65 64 |boolean.|.nloaded|
|00000440| 3d 66 61 6c 73 65 3b 0d | 09 70 75 62 6c 69 63 20 |=false;.|.public |
|00000450| 62 6f 6f 6c 65 61 6e 09 | 09 68 6c 6f 61 64 65 64 |boolean.|.hloaded|
|00000460| 3d 66 61 6c 73 65 3b 0d | 0d 09 62 6f 6f 6c 65 61 |=false;.|..boolea|
|00000470| 6e 20 09 09 09 64 65 62 | 75 67 3d 66 61 6c 73 65 |n ...deb|ug=false|
|00000480| 3b 0d 0d 09 70 75 62 6c | 69 63 20 76 6f 69 64 20 |;...publ|ic void |
|00000490| 73 74 61 72 74 28 29 0d | 09 7b 0d 09 0d 09 09 2f |start().|.{...../|
|000004a0| 2f 20 43 68 65 63 6b 20 | 69 66 20 74 68 65 20 69 |/ Check |if the i|
|000004b0| 6d 61 67 65 73 20 61 72 | 65 20 61 6c 72 65 61 64 |mages ar|e alread|
|000004c0| 79 20 6c 6f 61 64 65 64 | 20 28 43 61 63 68 65 20 |y loaded| (Cache |
|000004d0| 66 69 78 29 0d 09 09 69 | 66 20 28 28 63 68 65 63 |fix)...i|f ((chec|
|000004e0| 6b 49 6d 61 67 65 28 6e | 6f 72 6d 61 6c 69 6d 67 |kImage(n|ormalimg|
|000004f0| 2c 20 74 68 69 73 29 20 | 26 20 49 6d 61 67 65 4f |, this) |& ImageO|
|00000500| 62 73 65 72 76 65 72 2e | 41 4c 4c 42 49 54 53 29 |bserver.|ALLBITS)|
|00000510| 3d 3d 49 6d 61 67 65 4f | 62 73 65 72 76 65 72 2e |==ImageO|bserver.|
|00000520| 41 4c 4c 42 49 54 53 29 | 0d 09 09 7b 0d 09 09 09 |ALLBITS)|...{....|
|00000530| 6e 6c 6f 61 64 65 64 20 | 3d 20 74 72 75 65 3b 0d |nloaded |= true;.|
|00000540| 09 09 7d 0d 09 09 0d 09 | 09 69 66 20 28 28 63 68 |..}.....|.if ((ch|
|00000550| 65 63 6b 49 6d 61 67 65 | 28 68 69 67 68 6c 69 67 |eckImage|(highlig|
|00000560| 68 74 65 64 69 6d 67 2c | 20 74 68 69 73 29 20 26 |htedimg,| this) &|
|00000570| 20 49 6d 61 67 65 4f 62 | 73 65 72 76 65 72 2e 41 | ImageOb|server.A|
|00000580| 4c 4c 42 49 54 53 29 3d | 3d 49 6d 61 67 65 4f 62 |LLBITS)=|=ImageOb|
|00000590| 73 65 72 76 65 72 2e 41 | 4c 4c 42 49 54 53 29 0d |server.A|LLBITS).|
|000005a0| 09 09 7b 0d 09 09 09 68 | 6c 6f 61 64 65 64 20 3d |..{....h|loaded =|
|000005b0| 20 74 72 75 65 3b 0d 09 | 09 7d 0d 09 09 0d 09 09 | true;..|.}......|
|000005c0| 2f 2f 20 50 61 69 6e 74 | 20 69 74 21 0d 09 09 72 |// Paint| it!...r|
|000005d0| 65 70 61 69 6e 74 28 29 | 3b 0d 09 09 0d 09 7d 0d |epaint()|;.....}.|
|000005e0| 09 0d 09 70 75 62 6c 69 | 63 20 76 6f 69 64 20 69 |...publi|c void i|
|000005f0| 6e 69 74 28 29 0d 09 7b | 0d 09 09 2f 2f 41 70 70 |nit()..{|...//App|
|00000600| 6c 65 74 20 6e 61 6d 65 | 0d 09 09 53 79 73 74 65 |let name|...Syste|
|00000610| 6d 2e 6f 75 74 2e 70 72 | 69 6e 74 6c 6e 28 22 5c |m.out.pr|intln("\|
|00000620| 6e 54 68 69 73 20 61 70 | 70 6c 65 74 20 69 73 20 |nThis ap|plet is |
|00000630| 61 20 6d 6f 64 69 66 69 | 65 64 2c 20 65 6e 68 61 |a modifi|ed, enha|
|00000640| 6e 63 65 64 20 76 65 72 | 73 69 6f 6e 20 6f 66 3a |nced ver|sion of:|
|00000650| 22 29 3b 0d 09 09 53 79 | 73 74 65 6d 2e 6f 75 74 |");...Sy|stem.out|
|00000660| 2e 70 72 69 6e 74 6c 6e | 28 22 48 69 67 68 6c 69 |.println|("Highli|
|00000670| 67 68 74 65 64 49 6d 61 | 67 65 4d 61 70 20 76 31 |ghtedIma|geMap v1|
|00000680| 2e 31 31 2c 20 62 79 20 | 52 69 63 6b 61 72 64 20 |.11, by |Rickard |
|00000690| d6 62 65 72 67 28 72 69 | 63 6b 61 72 64 40 6c 79 |.berg(ri|ckard@ly|
|000006a0| 73 61 74 6f 72 2e 6c 69 | 75 2e 73 65 29 20 31 39 |sator.li|u.se) 19|
|000006b0| 39 36 22 29 3b 0d 09 09 | 53 79 73 74 65 6d 2e 6f |96");...|System.o|
|000006c0| 75 74 2e 70 72 69 6e 74 | 6c 6e 28 22 5c 6e 50 61 |ut.print|ln("\nPa|
|000006d0| 72 74 20 6f 66 20 49 6d | 61 67 65 4d 61 70 70 65 |rt of Im|ageMappe|
|000006e0| 72 20 76 33 2e 30 22 29 | 3b 0d 09 09 53 79 73 74 |r v3.0")|;...Syst|
|000006f0| 65 6d 2e 6f 75 74 2e 70 | 72 69 6e 74 6c 6e 28 22 |em.out.p|rintln("|
|00000700| 28 63 29 31 39 39 37 20 | 53 74 75 61 72 74 20 53 |(c)1997 |Stuart S|
|00000710| 6e 61 64 64 6f 6e 28 73 | 6e 61 64 64 6f 73 67 40 |naddon(s|naddosg@|
|00000720| 6b 61 67 69 2e 63 6f 6d | 29 5c 6e 22 29 3b 0d 09 |kagi.com|)\n");..|
|00000730| 09 0d 09 09 2f 2f 53 68 | 6f 77 20 22 4c 6f 61 64 |....//Sh|ow "Load|
|00000740| 69 6e 67 22 0d 09 09 72 | 65 70 61 69 6e 74 28 29 |ing"...r|epaint()|
|00000750| 3b 0d 0d 09 09 2f 2f 53 | 68 6f 77 20 64 65 62 75 |;....//S|how debu|
|00000760| 67 28 58 2f 59 29 20 69 | 6e 66 6f 3f 0d 09 09 64 |g(X/Y) i|nfo?...d|
|00000770| 65 62 75 67 3d 28 67 65 | 74 50 61 72 61 6d 65 74 |ebug=(ge|tParamet|
|00000780| 65 72 28 22 64 65 62 75 | 67 22 29 3d 3d 6e 75 6c |er("debu|g")==nul|
|00000790| 6c 29 3f 66 61 6c 73 65 | 3a 74 72 75 65 3b 0d 09 |l)?false|:true;..|
|000007a0| 09 20 0d 09 09 2f 2f 54 | 61 72 67 65 74 20 66 72 |. ...//T|arget fr|
|000007b0| 61 6d 65 20 6e 61 6d 65 | 2e 20 49 66 20 6e 75 6c |ame name|. If nul|
|000007c0| 6c 20 74 68 65 6e 20 73 | 61 6d 65 20 66 72 61 6d |l then s|ame fram|
|000007d0| 65 20 69 73 20 74 61 72 | 67 65 74 0d 09 09 2f 2f |e is tar|get...//|
|000007e0| 45 69 74 68 65 72 20 6f | 6e 65 20 74 61 72 67 65 |Either o|ne targe|
|000007f0| 74 20 66 6f 72 20 65 76 | 65 72 79 20 6c 69 6e 6b |t for ev|ery link|
|00000800| 2c 20 6f 72 20 6f 6e 65 | 20 66 6f 72 20 65 61 63 |, or one| for eac|
|00000810| 68 20 6c 69 6e 6b 0d 0d | 09 09 53 74 72 69 6e 67 |h link..|..String|
|00000820| 20 74 61 72 67 65 74 3d | 67 65 74 50 61 72 61 6d | target=|getParam|
|00000830| 65 74 65 72 28 22 74 61 | 72 67 65 74 22 29 3b 0d |eter("ta|rget");.|
|00000840| 09 09 69 66 20 28 74 61 | 72 67 65 74 3d 3d 6e 75 |..if (ta|rget==nu|
|00000850| 6c 6c 29 0d 09 09 09 74 | 61 72 67 65 74 3d 22 22 |ll)....t|arget=""|
|00000860| 3b 0d 0d 09 09 62 6f 6f | 6c 65 61 6e 20 69 6e 64 |;....boo|lean ind|
|00000870| 69 76 69 64 75 61 6c 74 | 61 72 67 65 74 73 3d 66 |ividualt|argets=f|
|00000880| 61 6c 73 65 3b 20 2f 2f | 49 66 20 74 72 75 65 2c |alse; //|If true,|
|00000890| 20 65 61 63 68 20 6c 69 | 6e 6b 20 68 61 73 20 69 | each li|nk has i|
|000008a0| 74 27 73 20 6f 77 6e 20 | 74 61 72 67 65 74 20 66 |t's own |target f|
|000008b0| 72 61 6d 65 2f 77 69 6e | 64 6f 77 0d 09 09 53 74 |rame/win|dow...St|
|000008c0| 72 69 6e 67 42 75 66 66 | 65 72 49 6e 70 75 74 53 |ringBuff|erInputS|
|000008d0| 74 72 65 61 6d 20 74 73 | 62 69 73 3d 6e 65 77 20 |tream ts|bis=new |
|000008e0| 53 74 72 69 6e 67 42 75 | 66 66 65 72 49 6e 70 75 |StringBu|fferInpu|
|000008f0| 74 53 74 72 65 61 6d 28 | 74 61 72 67 65 74 29 3b |tStream(|target);|
|00000900| 0d 09 09 53 74 72 65 61 | 6d 54 6f 6b 65 6e 69 7a |...Strea|mTokeniz|
|00000910| 65 72 20 09 09 74 73 74 | 3d 6e 65 77 20 53 74 72 |er ..tst|=new Str|
|00000920| 65 61 6d 54 6f 6b 65 6e | 69 7a 65 72 28 74 73 62 |eamToken|izer(tsb|
|00000930| 69 73 29 3b 0d 09 09 0d | 09 09 69 66 20 28 74 61 |is);....|..if (ta|
|00000940| 72 67 65 74 2e 69 6e 64 | 65 78 4f 66 28 27 2c 27 |rget.ind|exOf(','|
|00000950| 29 21 3d 2d 31 29 0d 09 | 09 09 69 6e 64 69 76 69 |)!=-1)..|..indivi|
|00000960| 64 75 61 6c 74 61 72 67 | 65 74 73 3d 74 72 75 65 |dualtarg|ets=true|
|00000970| 3b 20 2f 2f 49 6e 64 69 | 76 69 64 75 61 6c 20 6c |; //Indi|vidual l|
|00000980| 69 6e 6b 20 74 61 72 67 | 65 74 73 0d 09 09 0d 09 |ink targ|ets.....|
|00000990| 09 2f 2f 47 65 74 20 69 | 6d 61 67 65 73 0d 09 09 |.//Get i|mages...|
|000009a0| 55 52 4c 20 6e 6f 72 6d | 61 6c 75 72 6c 2c 20 68 |URL norm|alurl, h|
|000009b0| 69 67 68 6c 69 67 68 74 | 65 64 75 72 6c 3b 0d 09 |ighlight|edurl;..|
|000009c0| 09 74 72 79 0d 09 09 7b | 0d 09 09 09 6e 6f 72 6d |.try...{|....norm|
|000009d0| 61 6c 75 72 6c 3d 6e 65 | 77 20 55 52 4c 28 67 65 |alurl=ne|w URL(ge|
|000009e0| 74 44 6f 63 75 6d 65 6e | 74 42 61 73 65 28 29 2c |tDocumen|tBase(),|
|000009f0| 67 65 74 50 61 72 61 6d | 65 74 65 72 28 22 6e 6f |getParam|eter("no|
|00000a00| 72 6d 61 6c 22 29 29 3b | 0d 09 09 09 68 69 67 68 |rmal"));|....high|
|00000a10| 6c 69 67 68 74 65 64 75 | 72 6c 3d 6e 65 77 20 55 |lightedu|rl=new U|
|00000a20| 52 4c 28 67 65 74 44 6f | 63 75 6d 65 6e 74 42 61 |RL(getDo|cumentBa|
|00000a30| 73 65 28 29 2c 67 65 74 | 50 61 72 61 6d 65 74 65 |se(),get|Paramete|
|00000a40| 72 28 22 68 69 67 68 6c | 69 67 68 74 22 29 29 3b |r("highl|ight"));|
|00000a50| 0d 09 09 7d 0d 09 09 63 | 61 74 63 68 28 45 78 63 |...}...c|atch(Exc|
|00000a60| 65 70 74 69 6f 6e 20 65 | 29 0d 09 09 7b 0d 09 09 |eption e|)...{...|
|00000a70| 09 53 79 73 74 65 6d 2e | 6f 75 74 2e 70 72 69 6e |.System.|out.prin|
|00000a80| 74 6c 6e 28 22 45 72 72 | 6f 72 3a 20 27 6e 6f 72 |tln("Err|or: 'nor|
|00000a90| 6d 61 6c 27 20 6f 72 20 | 27 68 69 67 68 6c 69 67 |mal' or |'highlig|
|00000aa0| 68 74 27 20 6e 6f 74 20 | 76 61 6c 69 64 22 29 3b |ht' not |valid");|
|00000ab0| 0d 09 09 09 72 65 74 75 | 72 6e 3b 0d 09 09 7d 0d |....retu|rn;...}.|
|00000ac0| 0d 09 09 6e 6f 72 6d 61 | 6c 69 6d 67 20 3d 20 67 |...norma|limg = g|
|00000ad0| 65 74 49 6d 61 67 65 28 | 6e 6f 72 6d 61 6c 75 72 |etImage(|normalur|
|00000ae0| 6c 29 3b 0d 09 09 68 69 | 67 68 6c 69 67 68 74 65 |l);...hi|ghlighte|
|00000af0| 64 69 6d 67 20 3d 20 67 | 65 74 49 6d 61 67 65 28 |dimg = g|etImage(|
|00000b00| 68 69 67 68 6c 69 67 68 | 74 65 64 75 72 6c 29 3b |highligh|tedurl);|
|00000b10| 0d 09 0d 09 09 70 72 65 | 70 61 72 65 49 6d 61 67 |.....pre|pareImag|
|00000b20| 65 28 6e 6f 72 6d 61 6c | 69 6d 67 2c 20 74 68 69 |e(normal|img, thi|
|00000b30| 73 29 3b 0d 09 09 70 72 | 65 70 61 72 65 49 6d 61 |s);...pr|epareIma|
|00000b40| 67 65 28 68 69 67 68 6c | 69 67 68 74 65 64 69 6d |ge(highl|ightedim|
|00000b50| 67 2c 20 74 68 69 73 29 | 3b 0d 09 09 09 0d 09 09 |g, this)|;.......|
|00000b60| 73 65 74 4c 61 79 6f 75 | 74 28 6e 75 6c 6c 29 3b |setLayou|t(null);|
|00000b70| 0d 09 09 09 0d 09 09 72 | 65 70 61 69 6e 74 28 29 |.......r|epaint()|
|00000b80| 3b 0d 09 09 72 65 73 69 | 7a 65 28 6e 6f 72 6d 61 |;...resi|ze(norma|
|00000b90| 6c 69 6d 67 2e 67 65 74 | 57 69 64 74 68 28 74 68 |limg.get|Width(th|
|00000ba0| 69 73 29 2c 20 6e 6f 72 | 6d 61 6c 69 6d 67 2e 67 |is), nor|malimg.g|
|00000bb0| 65 74 48 65 69 67 68 74 | 28 74 68 69 73 29 29 3b |etHeight|(this));|
|00000bc0| 0d 0d 09 09 2f 2a 0d 09 | 09 20 2a 0d 09 09 20 2a |..../*..|. *... *|
|00000bd0| 20 50 61 72 73 65 20 6c | 69 6e 6b 73 0d 09 09 20 | Parse l|inks... |
|00000be0| 2a 0d 09 09 20 2a 2f 0d | 0d 09 09 53 74 72 69 6e |*... */.|...Strin|
|00000bf0| 67 20 6c 69 6e 6b 73 3d | 67 65 74 50 61 72 61 6d |g links=|getParam|
|00000c00| 65 74 65 72 28 22 6c 69 | 6e 6b 73 22 29 3b 0d 0d |eter("li|nks");..|
|00000c10| 09 09 2f 2f 4e 6f 20 6c | 69 6e 6b 73 2c 20 6e 6f |..//No l|inks, no|
|00000c20| 20 69 6d 61 67 65 6d 61 | 70 0d 09 09 69 66 20 28 | imagema|p...if (|
|00000c30| 6c 69 6e 6b 73 3d 3d 6e | 75 6c 6c 29 0d 09 09 7b |links==n|ull)...{|
|00000c40| 0d 09 09 09 53 79 73 74 | 65 6d 2e 6f 75 74 2e 70 |....Syst|em.out.p|
|00000c50| 72 69 6e 74 6c 6e 28 22 | 45 72 72 6f 72 3a 20 6e |rintln("|Error: n|
|00000c60| 6f 20 6c 69 6e 6b 73 20 | 73 70 65 63 69 66 69 65 |o links |specifie|
|00000c70| 64 22 29 3b 0d 09 09 09 | 72 65 74 75 72 6e 3b 0d |d");....|return;.|
|00000c80| 09 09 7d 0d 0d 09 09 53 | 74 72 69 6e 67 42 75 66 |..}....S|tringBuf|
|00000c90| 66 65 72 49 6e 70 75 74 | 53 74 72 65 61 6d 20 73 |ferInput|Stream s|
|00000ca0| 62 69 73 3d 6e 65 77 20 | 53 74 72 69 6e 67 42 75 |bis=new |StringBu|
|00000cb0| 66 66 65 72 49 6e 70 75 | 74 53 74 72 65 61 6d 28 |fferInpu|tStream(|
|00000cc0| 6c 69 6e 6b 73 29 3b 0d | 09 09 53 74 72 65 61 6d |links);.|..Stream|
|00000cd0| 54 6f 6b 65 6e 69 7a 65 | 72 20 09 09 73 74 3d 6e |Tokenize|r ..st=n|
|00000ce0| 65 77 20 53 74 72 65 61 | 6d 54 6f 6b 65 6e 69 7a |ew Strea|mTokeniz|
|00000cf0| 65 72 28 73 62 69 73 29 | 3b 0d 09 09 73 74 2e 71 |er(sbis)|;...st.q|
|00000d00| 75 6f 74 65 43 68 61 72 | 28 33 39 29 3b 0d 09 09 |uoteChar|(39);...|
|00000d10| 0d 09 09 2f 2f 53 79 6e | 74 61 78 20 7b 75 6c 78 |...//Syn|tax {ulx|
|00000d20| 2c 75 6c 79 2c 6c 72 78 | 2c 6c 72 79 2c 22 55 52 |,uly,lrx|,lry,"UR|
|00000d30| 4c 22 7d 0d 09 09 69 6e | 74 20 78 2c 79 2c 77 2c |L"}...in|t x,y,w,|
|00000d40| 68 3b 0d 09 09 55 52 4c | 20 75 72 6c 20 3d 20 6e |h;...URL| url = n|
|00000d50| 75 6c 6c 2c 20 61 75 64 | 69 6f 55 52 4c 20 3d 20 |ull, aud|ioURL = |
|00000d60| 6e 75 6c 6c 3b 20 2f 2f | 4c 69 6e 6b 20 55 52 4c |null; //|Link URL|
|00000d70| 73 0d 09 09 53 74 72 69 | 6e 67 20 61 6c 74 3b 0d |s...Stri|ng alt;.|
|00000d80| 09 09 62 6f 6f 6c 65 61 | 6e 20 64 6f 6e 65 3d 66 |..boolea|n done=f|
|00000d90| 61 6c 73 65 3b 20 2f 2f | 44 6f 6e 65 20 70 61 72 |alse; //|Done par|
|00000da0| 73 69 6e 67 20 6c 69 6e | 6b 73 3f 0d 0d 09 09 74 |sing lin|ks?....t|
|00000db0| 72 79 0d 09 09 09 64 6f | 0d 09 09 09 7b 0d 09 09 |ry....do|....{...|
|00000dc0| 09 09 2f 2f 44 65 66 61 | 75 6c 74 20 61 6c 74 65 |..//Defa|ult alte|
|00000dd0| 72 6e 61 74 69 76 65 20 | 74 65 78 74 0d 09 09 09 |rnative |text....|
|00000de0| 09 61 6c 74 3d 22 22 3b | 0d 0d 09 09 09 09 69 66 |.alt="";|......if|
|00000df0| 20 28 73 74 2e 6e 65 78 | 74 54 6f 6b 65 6e 28 29 | (st.nex|tToken()|
|00000e00| 21 3d 27 7b 27 29 20 74 | 68 72 6f 77 20 6e 65 77 |!='{') t|hrow new|
|00000e10| 20 45 78 63 65 70 74 69 | 6f 6e 28 22 7b 20 65 78 | Excepti|on("{ ex|
|00000e20| 70 65 63 74 65 64 22 29 | 3b 0d 09 09 0d 09 09 09 |pected")|;.......|
|00000e30| 09 2f 2f 55 70 70 65 72 | 20 6c 65 66 74 20 78 0d |.//Upper| left x.|
|00000e40| 09 09 09 09 69 66 20 28 | 73 74 2e 6e 65 78 74 54 |....if (|st.nextT|
|00000e50| 6f 6b 65 6e 28 29 21 3d | 53 74 72 65 61 6d 54 6f |oken()!=|StreamTo|
|00000e60| 6b 65 6e 69 7a 65 72 2e | 54 54 5f 4e 55 4d 42 45 |kenizer.|TT_NUMBE|
|00000e70| 52 29 20 74 68 72 6f 77 | 20 6e 65 77 20 45 78 63 |R) throw| new Exc|
|00000e80| 65 70 74 69 6f 6e 28 22 | 6e 75 6d 62 65 72 20 65 |eption("|number e|
|00000e90| 78 70 65 63 74 65 64 22 | 29 3b 0d 09 09 09 09 78 |xpected"|);.....x|
|00000ea0| 3d 28 69 6e 74 29 73 74 | 2e 6e 76 61 6c 3b 0d 09 |=(int)st|.nval;..|
|00000eb0| 09 0d 09 09 20 20 20 20 | 20 20 20 2f 2f 20 27 2c |.... | // ',|
|00000ec0| 27 0d 09 09 20 20 20 20 | 20 20 20 69 66 20 28 73 |'... | if (s|
|00000ed0| 74 2e 6e 65 78 74 54 6f | 6b 65 6e 28 29 21 3d 27 |t.nextTo|ken()!='|
|00000ee0| 2c 27 29 20 74 68 72 6f | 77 20 6e 65 77 20 45 78 |,') thro|w new Ex|
|00000ef0| 63 65 70 74 69 6f 6e 28 | 22 27 2c 27 20 65 78 70 |ception(|"',' exp|
|00000f00| 65 63 74 65 64 22 29 3b | 0d 09 09 0d 09 09 20 20 |ected");|...... |
|00000f10| 20 20 20 20 20 2f 2f 55 | 70 70 65 72 20 6c 65 66 | //U|pper lef|
|00000f20| 74 20 79 0d 09 09 20 20 | 20 20 20 20 20 69 66 20 |t y... | if |
|00000f30| 28 73 74 2e 6e 65 78 74 | 54 6f 6b 65 6e 28 29 21 |(st.next|Token()!|
|00000f40| 3d 53 74 72 65 61 6d 54 | 6f 6b 65 6e 69 7a 65 72 |=StreamT|okenizer|
|00000f50| 2e 54 54 5f 4e 55 4d 42 | 45 52 29 20 74 68 72 6f |.TT_NUMB|ER) thro|
|00000f60| 77 20 6e 65 77 20 45 78 | 63 65 70 74 69 6f 6e 28 |w new Ex|ception(|
|00000f70| 22 6e 75 6d 62 65 72 20 | 65 78 70 65 63 74 65 64 |"number |expected|
|00000f80| 22 29 3b 0d 09 09 20 20 | 20 20 20 20 20 79 3d 28 |");... | y=(|
|00000f90| 69 6e 74 29 73 74 2e 6e | 76 61 6c 3b 0d 0d 09 09 |int)st.n|val;....|
|00000fa0| 20 20 20 20 20 20 20 2f | 2f 20 27 2c 27 0d 09 09 | /|/ ','...|
|00000fb0| 20 20 20 20 20 20 20 69 | 66 20 28 73 74 2e 6e 65 | i|f (st.ne|
|00000fc0| 78 74 54 6f 6b 65 6e 28 | 29 21 3d 27 2c 27 29 20 |xtToken(|)!=',') |
|00000fd0| 74 68 72 6f 77 20 6e 65 | 77 20 45 78 63 65 70 74 |throw ne|w Except|
|00000fe0| 69 6f 6e 28 22 27 2c 27 | 20 65 78 70 65 63 74 65 |ion("','| expecte|
|00000ff0| 64 22 29 3b 0d 0d 09 09 | 20 20 20 20 20 20 20 2f |d");....| /|
|00001000| 2f 4c 6f 77 65 72 20 72 | 69 67 68 74 20 78 0d 09 |/Lower r|ight x..|
|00001010| 09 20 20 20 20 20 20 20 | 69 66 20 28 73 74 2e 6e |. |if (st.n|
|00001020| 65 78 74 54 6f 6b 65 6e | 28 29 21 3d 53 74 72 65 |extToken|()!=Stre|
|00001030| 61 6d 54 6f 6b 65 6e 69 | 7a 65 72 2e 54 54 5f 4e |amTokeni|zer.TT_N|
|00001040| 55 4d 42 45 52 29 20 74 | 68 72 6f 77 20 6e 65 77 |UMBER) t|hrow new|
|00001050| 20 45 78 63 65 70 74 69 | 6f 6e 28 22 6e 75 6d 62 | Excepti|on("numb|
|00001060| 65 72 20 65 78 70 65 63 | 74 65 64 22 29 3b 0d 09 |er expec|ted");..|
|00001070| 09 20 20 20 20 20 20 20 | 77 3d 28 69 6e 74 29 73 |. |w=(int)s|
|00001080| 74 2e 6e 76 61 6c 2d 78 | 3b 0d 0d 09 09 20 20 20 |t.nval-x|;.... |
|00001090| 20 20 20 20 2f 2f 20 27 | 2c 27 0d 09 09 20 20 20 | // '|,'... |
|000010a0| 20 20 20 20 69 66 20 28 | 73 74 2e 6e 65 78 74 54 | if (|st.nextT|
|000010b0| 6f 6b 65 6e 28 29 21 3d | 27 2c 27 29 20 74 68 72 |oken()!=|',') thr|
|000010c0| 6f 77 20 6e 65 77 20 45 | 78 63 65 70 74 69 6f 6e |ow new E|xception|
|000010d0| 28 22 27 2c 27 20 65 78 | 70 65 63 74 65 64 22 29 |("',' ex|pected")|
|000010e0| 3b 0d 09 09 0d 09 09 20 | 20 20 20 20 20 20 2f 2f |;...... | //|
|000010f0| 4c 6f 77 65 72 20 72 69 | 67 68 74 20 79 0d 09 09 |Lower ri|ght y...|
|00001100| 20 20 20 20 20 20 20 69 | 66 20 28 73 74 2e 6e 65 | i|f (st.ne|
|00001110| 78 74 54 6f 6b 65 6e 28 | 29 21 3d 53 74 72 65 61 |xtToken(|)!=Strea|
|00001120| 6d 54 6f 6b 65 6e 69 7a | 65 72 2e 54 54 5f 4e 55 |mTokeniz|er.TT_NU|
|00001130| 4d 42 45 52 29 20 74 68 | 72 6f 77 20 6e 65 77 20 |MBER) th|row new |
|00001140| 45 78 63 65 70 74 69 6f | 6e 28 22 6e 75 6d 62 65 |Exceptio|n("numbe|
|00001150| 72 20 65 78 70 65 63 74 | 65 64 22 29 3b 0d 09 09 |r expect|ed");...|
|00001160| 20 20 20 20 20 20 20 68 | 3d 28 69 6e 74 29 73 74 | h|=(int)st|
|00001170| 2e 6e 76 61 6c 2d 79 3b | 0d 09 09 0d 09 09 20 20 |.nval-y;|...... |
|00001180| 20 20 20 20 20 2f 2f 20 | 27 2c 27 0d 09 09 20 20 | // |','... |
|00001190| 20 20 20 20 20 69 66 20 | 28 73 74 2e 6e 65 78 74 | if |(st.next|
|000011a0| 54 6f 6b 65 6e 28 29 21 | 3d 27 2c 27 29 20 74 68 |Token()!|=',') th|
|000011b0| 72 6f 77 20 6e 65 77 20 | 45 78 63 65 70 74 69 6f |row new |Exceptio|
|000011c0| 6e 28 22 27 2c 27 20 65 | 78 70 65 63 74 65 64 22 |n("',' e|xpected"|
|000011d0| 29 3b 0d 09 09 0d 09 09 | 20 20 20 20 20 20 20 2f |);......| /|
|000011e0| 2f 55 52 4c 0d 09 09 09 | 20 20 20 69 66 20 28 73 |/URL....| if (s|
|000011f0| 74 2e 6e 65 78 74 54 6f | 6b 65 6e 28 29 21 3d 33 |t.nextTo|ken()!=3|
|00001200| 39 29 20 74 68 72 6f 77 | 20 6e 65 77 20 45 78 63 |9) throw| new Exc|
|00001210| 65 70 74 69 6f 6e 28 22 | 71 75 6f 74 65 64 20 75 |eption("|quoted u|
|00001220| 72 6c 20 65 78 70 65 63 | 74 65 64 28 75 73 65 20 |rl expec|ted(use |
|00001230| 27 20 66 6f 72 20 71 75 | 6f 74 61 74 69 6f 6e 29 |' for qu|otation)|
|00001240| 22 29 3b 0d 09 09 20 20 | 20 20 20 20 20 75 72 6c |");... | url|
|00001250| 3d 6e 65 77 20 55 52 4c | 28 67 65 74 44 6f 63 75 |=new URL|(getDocu|
|00001260| 6d 65 6e 74 42 61 73 65 | 28 29 2c 73 74 2e 73 76 |mentBase|(),st.sv|
|00001270| 61 6c 29 3b 0d 0d 09 09 | 09 20 20 20 2f 2f 4f 70 |al);....|. //Op|
|00001280| 74 69 6f 6e 61 6c 20 61 | 6c 74 65 72 6e 61 74 69 |tional a|lternati|
|00001290| 76 65 20 74 65 78 74 0d | 09 09 20 20 20 20 20 20 |ve text.|.. |
|000012a0| 20 69 66 20 28 73 74 2e | 6e 65 78 74 54 6f 6b 65 | if (st.|nextToke|
|000012b0| 6e 28 29 3d 3d 27 2c 27 | 29 0d 09 09 09 20 20 20 |n()==','|).... |
|000012c0| 7b 0d 09 09 09 09 20 20 | 20 69 66 20 28 73 74 2e |{..... | if (st.|
|000012d0| 6e 65 78 74 54 6f 6b 65 | 6e 28 29 3d 3d 33 39 29 |nextToke|n()==39)|
|000012e0| 0d 09 09 09 09 09 20 20 | 20 61 6c 74 3d 73 74 2e |...... | alt=st.|
|000012f0| 73 76 61 6c 3b 0d 09 09 | 09 09 20 20 20 65 6c 73 |sval;...|.. els|
|00001300| 65 0d 09 09 09 09 09 20 | 20 20 74 68 72 6f 77 20 |e...... | throw |
|00001310| 6e 65 77 20 45 78 63 65 | 70 74 69 6f 6e 28 22 61 |new Exce|ption("a|
|00001320| 6c 74 65 72 6e 61 74 69 | 76 65 20 6c 69 6e 6b 74 |lternati|ve linkt|
|00001330| 65 78 74 20 65 78 70 65 | 63 74 65 64 22 29 3b 0d |ext expe|cted");.|
|00001340| 09 09 09 20 20 20 7d 0d | 09 09 09 20 20 20 65 6c |... }.|... el|
|00001350| 73 65 0d 09 09 09 09 20 | 20 20 73 74 2e 70 75 73 |se..... | st.pus|
|00001360| 68 42 61 63 6b 28 29 3b | 0d 09 09 0d 09 09 20 20 |hBack();|...... |
|00001370| 20 20 20 20 20 2f 2f 4f | 70 74 69 6f 6e 61 6c 20 | //O|ptional |
|00001380| 41 75 64 69 6f 43 6c 69 | 70 20 55 52 4c 0d 09 09 |AudioCli|p URL...|
|00001390| 20 20 20 20 20 20 20 69 | 66 20 28 73 74 2e 6e 65 | i|f (st.ne|
|000013a0| 78 74 54 6f 6b 65 6e 28 | 29 3d 3d 27 2c 27 29 0d |xtToken(|)==',').|
|000013b0| 09 09 09 20 20 20 7b 0d | 09 09 09 09 20 20 20 69 |... {.|.... i|
|000013c0| 66 20 28 73 74 2e 6e 65 | 78 74 54 6f 6b 65 6e 28 |f (st.ne|xtToken(|
|000013d0| 29 3d 3d 33 39 29 0d 09 | 09 09 20 20 20 20 20 20 |)==39)..|.. |
|000013e0| 20 20 20 20 20 61 75 64 | 69 6f 55 52 4c 3d 6e 65 | aud|ioURL=ne|
|000013f0| 77 20 55 52 4c 28 67 65 | 74 44 6f 63 75 6d 65 6e |w URL(ge|tDocumen|
|00001400| 74 42 61 73 65 28 29 2c | 73 74 2e 73 76 61 6c 29 |tBase(),|st.sval)|
|00001410| 3b 0d 09 09 09 20 20 20 | 20 20 20 20 65 6c 73 65 |;.... | else|
|00001420| 0d 09 09 09 09 20 20 20 | 09 20 20 20 74 68 72 6f |..... |. thro|
|00001430| 77 20 6e 65 77 20 45 78 | 63 65 70 74 69 6f 6e 28 |w new Ex|ception(|
|00001440| 22 71 75 6f 74 65 64 20 | 75 72 6c 20 65 78 70 65 |"quoted |url expe|
|00001450| 63 74 65 64 28 75 73 65 | 20 27 20 66 6f 72 20 71 |cted(use| ' for q|
|00001460| 75 6f 74 61 74 69 6f 6e | 29 22 29 3b 0d 09 09 09 |uotation|)");....|
|00001470| 20 20 20 7d 0d 09 09 09 | 20 20 20 65 6c 73 65 0d | }....| else.|
|00001480| 09 09 09 09 20 20 20 73 | 74 2e 70 75 73 68 42 61 |.... s|t.pushBa|
|00001490| 63 6b 28 29 3b 0d 0d 09 | 09 20 20 20 20 20 20 20 |ck();...|. |
|000014a0| 69 66 20 28 73 74 2e 6e | 65 78 74 54 6f 6b 65 6e |if (st.n|extToken|
|000014b0| 28 29 21 3d 27 7d 27 29 | 0d 09 09 20 20 20 20 20 |()!='}')|... |
|000014c0| 20 20 09 20 20 20 74 68 | 72 6f 77 20 6e 65 77 20 | . th|row new |
|000014d0| 45 78 63 65 70 74 69 6f | 6e 28 22 7d 20 65 78 70 |Exceptio|n("} exp|
|000014e0| 65 63 74 65 64 22 29 3b | 0d 0d 09 09 09 20 20 20 |ected");|..... |
|000014f0| 2f 2f 47 65 74 20 74 61 | 72 67 65 74 20 6e 61 6d |//Get ta|rget nam|
|00001500| 65 0d 09 09 09 20 20 20 | 53 74 72 69 6e 67 20 6c |e.... |String l|
|00001510| 69 6e 6b 74 61 72 67 65 | 74 3b 20 2f 2f 54 61 72 |inktarge|t; //Tar|
|00001520| 67 65 74 20 66 6f 72 20 | 74 68 69 73 20 70 61 72 |get for |this par|
|00001530| 74 69 63 75 6c 61 72 20 | 6c 69 6e 6b 0d 09 09 09 |ticular |link....|
|00001540| 20 20 20 69 66 20 28 69 | 6e 64 69 76 69 64 75 61 | if (i|ndividua|
|00001550| 6c 74 61 72 67 65 74 73 | 29 0d 09 09 09 20 20 20 |ltargets|).... |
|00001560| 7b 0d 09 09 09 09 20 20 | 20 74 73 74 2e 6e 65 78 |{..... | tst.nex|
|00001570| 74 54 6f 6b 65 6e 28 29 | 3b 0d 09 09 09 09 20 20 |tToken()|;..... |
|00001580| 20 6c 69 6e 6b 74 61 72 | 67 65 74 3d 74 73 74 2e | linktar|get=tst.|
|00001590| 73 76 61 6c 3b 0d 09 09 | 09 09 20 20 20 74 73 74 |sval;...|.. tst|
|000015a0| 2e 6e 65 78 74 54 6f 6b | 65 6e 28 29 3b 0d 09 09 |.nextTok|en();...|
|000015b0| 09 20 20 20 7d 0d 09 09 | 09 20 20 20 65 6c 73 65 |. }...|. else|
|000015c0| 0d 09 09 09 09 20 20 20 | 6c 69 6e 6b 74 61 72 67 |..... |linktarg|
|000015d0| 65 74 3d 74 61 72 67 65 | 74 3b 20 2f 2f 55 73 65 |et=targe|t; //Use|
|000015e0| 20 67 6c 6f 62 61 6c 20 | 74 61 72 67 65 74 0d 09 | global |target..|
|000015f0| 09 0d 09 09 09 20 20 20 | 2f 2f 43 72 65 61 74 65 |..... |//Create|
|00001600| 20 69 6d 61 67 65 73 20 | 66 6f 72 20 6c 69 6e 6b | images |for link|
|00001610| 0d 09 20 20 20 20 20 20 | 20 20 20 20 20 49 6d 61 |.. | Ima|
|00001620| 67 65 46 69 6c 74 65 72 | 20 63 72 6f 70 66 69 6c |geFilter| cropfil|
|00001630| 74 65 72 20 3d 20 6e 65 | 77 20 43 72 6f 70 49 6d |ter = ne|w CropIm|
|00001640| 61 67 65 46 69 6c 74 65 | 72 28 78 2c 79 2c 77 2c |ageFilte|r(x,y,w,|
|00001650| 68 29 3b 0d 09 20 20 20 | 20 20 20 20 20 20 20 20 |h);.. | |
|00001660| 49 6d 61 67 65 20 6e 69 | 6d 67 20 3d 20 63 72 65 |Image ni|mg = cre|
|00001670| 61 74 65 49 6d 61 67 65 | 28 6e 65 77 20 46 69 6c |ateImage|(new Fil|
|00001680| 74 65 72 65 64 49 6d 61 | 67 65 53 6f 75 72 63 65 |teredIma|geSource|
|00001690| 28 6e 6f 72 6d 61 6c 69 | 6d 67 2e 67 65 74 53 6f |(normali|mg.getSo|
|000016a0| 75 72 63 65 28 29 2c 0d | 09 20 20 20 20 20 20 20 |urce(),.|. |
|000016b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 72 6f | | cro|
|000016d0| 70 66 69 6c 74 65 72 29 | 29 3b 0d 0d 09 20 20 20 |pfilter)|);... |
|000016e0| 20 20 20 20 20 20 20 20 | 49 6d 61 67 65 20 68 6c | |Image hl|
|000016f0| 69 6d 67 20 3d 20 63 72 | 65 61 74 65 49 6d 61 67 |img = cr|eateImag|
|00001700| 65 28 6e 65 77 20 46 69 | 6c 74 65 72 65 64 49 6d |e(new Fi|lteredIm|
|00001710| 61 67 65 53 6f 75 72 63 | 65 28 68 69 67 68 6c 69 |ageSourc|e(highli|
|00001720| 67 68 74 65 64 69 6d 67 | 2e 67 65 74 53 6f 75 72 |ghtedimg|.getSour|
|00001730| 63 65 28 29 2c 0d 09 20 | 20 20 20 20 20 20 20 20 |ce(),.. | |
|00001740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001750| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 72 6f 70 | | crop|
|00001760| 66 69 6c 74 65 72 29 29 | 3b 0d 0d 09 09 09 20 20 |filter))|;..... |
|00001770| 20 2f 2f 41 64 64 20 6c | 69 6e 6b 0d 09 09 20 20 | //Add l|ink... |
|00001780| 20 20 20 20 20 61 64 64 | 28 6e 65 77 20 48 69 67 | add|(new Hig|
|00001790| 68 6c 69 67 68 74 61 62 | 6c 65 4c 69 6e 6b 28 78 |hlightab|leLink(x|
|000017a0| 2c 20 79 2c 20 77 2c 20 | 68 2c 20 6e 69 6d 67 2c |, y, w, |h, nimg,|
|000017b0| 20 68 6c 69 6d 67 2c 20 | 75 72 6c 2c 20 61 75 64 | hlimg, |url, aud|
|000017c0| 69 6f 55 52 4c 2c 20 61 | 6c 74 2c 20 6c 69 6e 6b |ioURL, a|lt, link|
|000017d0| 74 61 72 67 65 74 2c 20 | 74 68 69 73 29 29 3b 0d |target, |this));.|
|000017e0| 0d 09 09 09 20 20 20 2f | 2f 43 68 65 63 6b 20 69 |.... /|/Check i|
|000017f0| 66 20 65 6e 64 20 6f 66 | 20 6c 69 6e 6b 73 0d 09 |f end of| links..|
|00001800| 09 09 20 20 20 69 66 20 | 28 73 74 2e 6e 65 78 74 |.. if |(st.next|
|00001810| 54 6f 6b 65 6e 28 29 3d | 3d 53 74 72 65 61 6d 54 |Token()=|=StreamT|
|00001820| 6f 6b 65 6e 69 7a 65 72 | 2e 54 54 5f 45 4f 46 29 |okenizer|.TT_EOF)|
|00001830| 0d 09 09 09 09 20 20 20 | 64 6f 6e 65 3d 74 72 75 |..... |done=tru|
|00001840| 65 3b 0d 0d 09 09 09 20 | 20 20 73 74 2e 70 75 73 |e;..... | st.pus|
|00001850| 68 42 61 63 6b 28 29 3b | 0d 0d 09 09 09 7d 20 77 |hBack();|.....} w|
|00001860| 68 69 6c 65 28 21 64 6f | 6e 65 29 3b 0d 09 09 63 |hile(!do|ne);...c|
|00001870| 61 74 63 68 28 45 78 63 | 65 70 74 69 6f 6e 20 65 |atch(Exc|eption e|
|00001880| 29 0d 09 09 7b 0d 09 09 | 09 53 79 73 74 65 6d 2e |)...{...|.System.|
|00001890| 6f 75 74 2e 70 72 69 6e | 74 6c 6e 28 22 45 72 72 |out.prin|tln("Err|
|000018a0| 6f 72 20 69 6e 20 6c 69 | 6e 6b 73 20 70 61 72 61 |or in li|nks para|
|000018b0| 6d 65 74 65 72 3a 22 29 | 3b 0d 09 09 09 53 79 73 |meter:")|;....Sys|
|000018c0| 74 65 6d 2e 6f 75 74 2e | 70 72 69 6e 74 6c 6e 28 |tem.out.|println(|
|000018d0| 65 29 3b 0d 09 09 7d 0d | 09 7d 0d 0d 09 70 75 62 |e);...}.|.}...pub|
|000018e0| 6c 69 63 20 76 6f 69 64 | 20 70 61 69 6e 74 28 47 |lic void| paint(G|
|000018f0| 72 61 70 68 69 63 73 20 | 67 29 0d 09 7b 0d 09 09 |raphics |g)..{...|
|00001900| 69 66 20 28 6e 6c 6f 61 | 64 65 64 20 26 26 20 68 |if (nloa|ded && h|
|00001910| 6c 6f 61 64 65 64 29 0d | 09 09 7b 0d 09 09 09 67 |loaded).|..{....g|
|00001920| 2e 64 72 61 77 49 6d 61 | 67 65 28 6e 6f 72 6d 61 |.drawIma|ge(norma|
|00001930| 6c 69 6d 67 2c 30 2c 30 | 2c 74 68 69 73 29 3b 0d |limg,0,0|,this);.|
|00001940| 09 09 7d 0d 09 09 65 6c | 73 65 0d 09 09 7b 0d 09 |..}...el|se...{..|
|00001950| 09 09 67 2e 64 72 61 77 | 53 74 72 69 6e 67 28 22 |..g.draw|String("|
|00001960| 4c 6f 61 64 69 6e 67 22 | 2c 30 2c 31 30 29 3b 0d |Loading"|,0,10);.|
|00001970| 09 09 7d 0d 09 09 0d 09 | 09 70 61 69 6e 74 43 6f |..}.....|.paintCo|
|00001980| 6d 70 6f 6e 65 6e 74 73 | 28 67 29 3b 0d 09 7d 0d |mponents|(g);..}.|
|00001990| 0d 09 70 75 62 6c 69 63 | 20 76 6f 69 64 20 75 70 |..public| void up|
|000019a0| 64 61 74 65 28 47 72 61 | 70 68 69 63 73 20 67 29 |date(Gra|phics g)|
|000019b0| 0d 09 7b 0d 09 09 70 61 | 69 6e 74 28 67 29 3b 0d |..{...pa|int(g);.|
|000019c0| 09 7d 0d 09 09 0d 09 70 | 75 62 6c 69 63 20 62 6f |.}.....p|ublic bo|
|000019d0| 6f 6c 65 61 6e 20 69 6d | 61 67 65 55 70 64 61 74 |olean im|ageUpdat|
|000019e0| 65 28 49 6d 61 67 65 20 | 69 6d 67 2c 20 69 6e 74 |e(Image |img, int|
|000019f0| 20 69 6e 66 6f 66 6c 61 | 67 73 2c 20 69 6e 74 20 | infofla|gs, int |
|00001a00| 78 2c 20 69 6e 74 20 79 | 2c 20 69 6e 74 20 77 69 |x, int y|, int wi|
|00001a10| 64 74 68 2c 20 69 6e 74 | 20 68 65 69 67 68 74 29 |dth, int| height)|
|00001a20| 0d 09 7b 0d 09 09 69 66 | 20 28 69 6d 67 3d 3d 6e |..{...if| (img==n|
|00001a30| 6f 72 6d 61 6c 69 6d 67 | 20 26 26 20 28 69 6e 66 |ormalimg| && (inf|
|00001a40| 6f 66 6c 61 67 73 20 26 | 20 49 6d 61 67 65 4f 62 |oflags &| ImageOb|
|00001a50| 73 65 72 76 65 72 2e 41 | 4c 4c 42 49 54 53 29 3d |server.A|LLBITS)=|
|00001a60| 3d 49 6d 61 67 65 4f 62 | 73 65 72 76 65 72 2e 41 |=ImageOb|server.A|
|00001a70| 4c 4c 42 49 54 53 29 0d | 09 09 7b 0d 09 09 09 6e |LLBITS).|..{....n|
|00001a80| 6c 6f 61 64 65 64 20 3d | 20 74 72 75 65 3b 0d 09 |loaded =| true;..|
|00001a90| 09 7d 0d 09 09 0d 09 09 | 69 66 20 28 69 6d 67 3d |.}......|if (img=|
|00001aa0| 3d 68 69 67 68 6c 69 67 | 68 74 65 64 69 6d 67 20 |=highlig|htedimg |
|00001ab0| 26 26 20 28 69 6e 66 6f | 66 6c 61 67 73 20 26 20 |&& (info|flags & |
|00001ac0| 49 6d 61 67 65 4f 62 73 | 65 72 76 65 72 2e 41 4c |ImageObs|erver.AL|
|00001ad0| 4c 42 49 54 53 29 3d 3d | 49 6d 61 67 65 4f 62 73 |LBITS)==|ImageObs|
|00001ae0| 65 72 76 65 72 2e 41 4c | 4c 42 49 54 53 29 0d 09 |erver.AL|LBITS)..|
|00001af0| 09 7b 0d 09 09 09 68 6c | 6f 61 64 65 64 20 3d 20 |.{....hl|oaded = |
|00001b00| 74 72 75 65 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 69 |true;...|}......i|
|00001b10| 66 20 28 6e 6c 6f 61 64 | 65 64 20 26 26 20 68 6c |f (nload|ed && hl|
|00001b20| 6f 61 64 65 64 29 0d 09 | 09 09 72 65 70 61 69 6e |oaded)..|..repain|
|00001b30| 74 28 29 3b 0d 09 09 09 | 0d 09 09 72 65 74 75 72 |t();....|...retur|
|00001b40| 6e 20 21 28 68 6c 6f 61 | 64 65 64 20 26 26 20 6e |n !(hloa|ded && n|
|00001b50| 6c 6f 61 64 65 64 29 3b | 0d 09 7d 0d 09 09 0d 09 |loaded);|..}.....|
|00001b60| 70 75 62 6c 69 63 20 62 | 6f 6f 6c 65 61 6e 20 6d |public b|oolean m|
|00001b70| 6f 75 73 65 4d 6f 76 65 | 28 45 76 65 6e 74 20 65 |ouseMove|(Event e|
|00001b80| 76 74 2c 20 69 6e 74 20 | 78 2c 20 69 6e 74 20 79 |vt, int |x, int y|
|00001b90| 29 0d 09 7b 0d 09 09 2f | 2f 53 68 6f 77 20 64 65 |)..{.../|/Show de|
|00001ba0| 62 75 67 28 58 2f 59 29 | 20 69 6e 66 6f 0d 09 09 |bug(X/Y)| info...|
|00001bb0| 69 66 20 28 64 65 62 75 | 67 29 0d 09 09 7b 09 0d |if (debu|g)...{..|
|00001bc0| 09 09 09 73 68 6f 77 53 | 74 61 74 75 73 28 22 58 |...showS|tatus("X|
|00001bd0| 3a 20 22 2b 78 2b 22 20 | 59 3a 20 22 2b 79 29 3b |: "+x+" |Y: "+y);|
|00001be0| 0d 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00001bf0| 0d 09 09 7d 0d 0d 09 09 | 72 65 74 75 72 6e 20 66 |...}....|return f|
|00001c00| 61 6c 73 65 3b 0d 09 7d | 0d 0d 7d 00 00 00 00 00 |alse;..}|..}.....|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001c90| 04 4a 86 6e ee 28 4b 76 | 3c 60 24 28 c7 28 c7 28 |.J.n.(Kv|<`$(.(.(|
|00001ca0| c7 28 c7 28 c7 28 c7 28 | c7 28 c7 28 c7 28 c7 28 |.(.(.(.(|.(.(.(.(|
|00001cb0| 18 48 69 67 68 6c 69 67 | 68 74 65 64 49 6d 61 67 |.Highlig|htedImag|
|00001cc0| 65 4d 61 70 2e 6a 61 76 | 61 70 02 00 00 00 50 61 |eMap.jav|ap....Pa|
|00001cd0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 b0 97 54 27 00 00 | 00 00 00 00 01 9a 0e 20 |....T'..|....... |
|00001d00| 78 09 48 70 01 b0 68 03 | 54 67 02 76 01 10 03 26 |x.Hp..h.|Tg.v...&|
|00001d10| 2e ff fc 4e 5e 4e 75 4e | 56 00 00 20 78 09 48 70 |...N^NuN|V.. x.Hp|
|00001d20| 0d b0 a8 08 1c 67 0c 20 | 78 09 48 70 0f b0 a8 08 |.....g. |x.Hp....|
|00001d30| 1c 66 04 70 00 60 42 20 | 78 09 48 2f 08 4e ad 17 |.f.p.`B |x.H/.N..|
|00001d40| 82 4a 00 58 4f 67 30 20 | 78 09 48 30 28 00 70 c0 |.J.XOg0 |x.H0(.p.|
|00001d50| 7c 00 ff 72 00 32 00 70 | 02 b0 81 67 16 20 78 09 ||..r.2.p|...g. x.|
|00001d60| 48 30 28 00 70 c0 7c 00 | ff 72 00 32 00 70 01 b0 |H0(.p.|.|.r.2.p..|
|00001d70| 81 66 04 70 01 60 02 70 | 00 4e 5e 4e 75 4e 56 00 |.f.p.`.p|.N^NuNV.|
|00001d80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 02 | 00 04 00 5d 00 7b 02 48 |........|...].{.H|
|00001db0| 02 da 00 5d 00 7b 02 48 | 02 da 63 37 3c bd 00 00 |...].{.H|..c7<...|
|00001dc0| 06 40 00 00 06 41 00 00 | 0a 3c 01 00 00 00 00 04 |.@...A..|.<......|
|00001dd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00001de0| 00 00 00 46 01 4c 07 a8 | 1d 62 00 00 00 1c 00 46 |...F.L..|.b.....F|
|00001df0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001e00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001e10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+